//
//  SkinCollectionViewCell.m
//  ErWa
//
//  Created by 王阳阳 on 16/3/15.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SkinCollectionViewCell.h"

@implementation SkinCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.img = [[UIImageView alloc]init];
        [self.contentView addSubview:_img];
        _img.backgroundColor = [UIColor redColor];
        
        self.biaoshi = [[UIImageView alloc]init];
        [self.contentView addSubview:_biaoshi];
//        _biaoshi.backgroundColor = [UIColor yellowColor];
    
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    _img.frame = self.contentView.frame;
    _biaoshi.frame = CGRectMake(self.contentView.frame.size.width - 25, self.contentView.frame.size.height - 25, 20, 20);
}
@end
